Skip to content

Speed up PostgreSQL builds#1650

Merged
tsegismont merged 1 commit intoeclipse-vertx:4.xfrom
tsegismont:backport-1649
Apr 1, 2026
Merged

Speed up PostgreSQL builds#1650
tsegismont merged 1 commit intoeclipse-vertx:4.xfrom
tsegismont:backport-1649

Conversation

@tsegismont
Copy link
Copy Markdown
Member

Backport of #1649

Backport of eclipse-vertx#1649

Create a shared rule instance in ContainerPgRule.

This instance is used where we don't need particular customization (SSL, different user, ...etc.).
In ContainerPgRule#after method, we skip stopping the server if the method is called on the SHARED instance.
Therefore, we avoid starting/stopping the PostgreSQL container before/after each test class.
On my box, the builds takes 1-2 minutes instead of 5-6 minutes.
This behavior is aligned with MySQL, MSSQL and Oracle clients testing.

Also, modified EnumeratedTypesExtendedCodecTest#testEncodeEnumArrayEmptyValues.
It checked a column that had nothing to do with enum array.
Without this change, we cannot use a shared rule.

Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
@tsegismont tsegismont merged commit eea43ed into eclipse-vertx:4.x Apr 1, 2026
18 checks passed
@tsegismont tsegismont deleted the backport-1649 branch April 1, 2026 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant